package trlygjj.tanruiliyigenjinjin.mapper;

import trlygjj.tanruiliyigenjinjin.domain.Permission;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface PermissionMapper {

    List<Permission> selectAll();

    int queryForCount(QueryObject qo);

    List<Permission> queryForList(QueryObject qo);

    List<Permission> queryPermissionByRoleId(Long roleId);

    List<String> queryPermissionResourceByEmployeeId(Long id);

    int insert(Permission permission);
}